package com.wwj.server.control.msg;

import com.google.gson.annotations.SerializedName;
import com.wwj.server.control.common.MsgConstants;
import com.wwj.server.model.NetBaseMsg;

public class DeviceLoginMsgAck extends NetBaseMsg {

    private String type = MsgConstants.DEVICE_LOGIN_ACK;

    @SerializedName("device_id")
    private String deviceId;

    @SerializedName("room_id")
    private String roomId;

    @SerializedName("channel_name")
    private String channelName;

    private String timestamp;

    private String signature;

    private String result;

    public DeviceLoginMsgAck() {
    }

    public DeviceLoginMsgAck(DeviceLoginMsg msg, String result) {
        this.deviceId = msg.getDeviceId();
        this.timestamp = msg.getTimestamp();
        this.signature = msg.getSignature();
        this.roomId = msg.getRoomId();
        this.channelName = msg.getChannelName();
        this.result = result;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
